<template>
  <transition name="fade">
    <div class="back-top">
      <img src="~assets/images/backtop/top.png" alt="">
    </div>
  </transition>
</template>

<script>
  export default {
    name: "BackTop"
  }
</script>

<style scoped>
  .back-top{
    position: fixed;
    right: 10px;
    bottom: 60px;
    transition: opacity 1s;
  }
  .back-top img{
    width: 50px;
    height: 50px;
  }
  .fade-enter-active, .fade-leave-active{
    transition: opacity .5s;
  }
  .fade-enter, .fade-leave-to {
    opacity: 0;
  }
</style>
